package com.xh.demo.domain.properties;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Name JdbcProperties
 * @Description
 * @Author wen
 * @Date 2019-07-31
 */
@Getter
@Component
@PropertySource(value = {"classpath:/jdbc.properties"})
public class JdbcProperties {

    @Value("${spring.datasource.driverClassName}")
    private String DriverClass;

    @Value("${spring.datasource.url}")
    private String url;

    @Value("${spring.datasource.username}")
    private String username;

    @Value("${spring.datasource.password}")
    private String password;

    @Value("${spring.datasource.initialSize}")
    private int initialSize;

    @Value("${spring.datasource.minIdle}")
    private int minIdle;

    @Value("${spring.datasource.maxActive}")
    private int maxActive;

    @Value("${spring.datasource.maxWait}")
    private long maxWait;

}
